<?php

final class UsersQueries {
	// @todo get a real query here?
    private static $getUser = "SELECT username, user_password FROM phpbb_users
							   WHERE username_clean = ? AND user_password = ?
							   AND user_inactive_reason = 0";

    private function __construct() {} // So the class can't be instantiated.
    
    public static function GetUser($username, $password) {
        $registry = Registry::GetInstance();
        $DB = $registry->Get('DB');
        $query = new pQuery(self::$getUser);
        $DB->Query($query, false);
        $query->SetParams($username, $password);
        return $query->FetchResult();
    }
}